package com.dynamic.data.permission.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@Getter
@Setter
@ConfigurationProperties(prefix = "permission")
public class PermissionProperties {

    /**
     * 是否开启权限校验
     */
    private boolean enabled;

    /**
     * 拦截接口前缀
     */
    private String prefix;

    /**
     * 排除不校验
     */
    private List<String> excludePathPatterns;

    /**
     * 用户系统后端地址
     */
    private String userServiceUrl;

}
